//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IView.h>
///	@path	~/src/graphics/
///	@date	2008/11/01
///	@desc	.

#pragma once

#include "xeres.h"

#include "lib/math/vector.h"
#include "lib/math/matrix.h"

#include "object/IObject.h"

#include "graphics/IDevice.h"

namespace xeres {

	// forward declaration
	class RenderContext;

	/*! 
		\class	IView
		\brief	Viewer provider of screen.
	*/
	class IView : public IObject
	{
	public:

		/// \ctor
		IView( void );

		/// \ctor
		virtual ~IView( void );

		DECL_IOBJECT_INTERFACE( IView , IObject );

	public:

		///	\name View Interface
		//@{

		/// \brief	Reset view (clipping, viewport).
		virtual void Reset( RenderContext& rc ) = 0;

		/// \brief	Get camera transform matrix.
		virtual Matrix<float> GetTransform( void ) = 0;

		/// \brief	Get camera projection matrix.
		virtual Matrix<float> GetProjection( void ) = 0;

		//@}
	};
	
} // namespace xeres
